package org.example.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 壁纸分类关联表
 * @TableName wallpaper_categories
 */
@TableName(value ="wallpaper_categories")
@Data
public class WallpaperCategories {
    /**
     * 关联ID，主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 壁纸ID
     */
    @TableField(value = "wallpaper_id")
    private Long wallpaper_id;

    /**
     * 分类ID
     */
    @TableField(value = "category_id")
    private Integer category_id;

    /**
     * 是否主分类(0:否,1:是)
     */
    @TableField(value = "is_primary")
    private Integer is_primary;
}